package com.hbx.mapper;

import com.hbx.model.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hbx
 * @since 2022-01-15
 */
@Mapper
public interface BlogMapper extends BaseMapper<Blog> {

    /**
     * 赞
     * @param type
     * @param blogId
     * @return
     */
    int niu(@Param("type") String type,@Param("blogId") Integer blogId);
}
